#include <iostream>

using namespace std;

int main0()
{
    int a, b;
    while (cin >> a >> b)
    {
        cout << a + b << endl;
    }
    return 0;
}

int main1()
{
    int t;
    int a, b;
    cin >> t;
    for (int i = 0; i < t; i++)
    {
        cin >> a >> b;
        cout << a + b << endl;
    }
    return 0;
}

int main2()
{
    int temp, ans;
    ans = 0;
    while (cin >> temp)
    {
        ans += temp;
        if (cin.get() == '\n')
        {
            cout << ans << endl;
            ans = 0;
        }
    }
    return 0;
}

/*
a,bb,c
a,c,i
newcodeer
*/

int main3()
{
    string line;
    while (getline(cin, line))
    {
        istringstream is(line);
        string str;
        vector<string> s;
        while (getline(is, str, ','))
        { // while判断的实际上是is是否是有效的输入流
            s.push_back(str);
        }
        sort(s.begin(), s.end());
        cout << s[0];
        for (int i = 1; i < s.size(); i++)
        {
            cout << "," << s[i];
        }
        cout << endl;
    }
    return 0;
}